import 'package:flutter/material.dart';

class MyApp7 extends StatelessWidget {
  const MyApp7({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(
          "Image组件",
          style: TextStyle(fontSize: 20, color: Colors.white),
        ),
        centerTitle: true,
        backgroundColor: Colors.red,
      ),
      body: Center(
        child: Container(
          width: 300,
          height: 300,
          color: Colors.pink,
          padding: EdgeInsets.all(20),
          // child: Image.network(
          //   'https://yanxuan-item.nosdn.127.net/e529b6ab111ade9da9314867f98d360f.png',
          //   fit: BoxFit.cover,
          //   width: 200,
          //   height: 200,
          // ),
          child: Image.asset('qiche.png'),
        ),
      ),
    );
  }
}
